﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;

namespace Oroboros.Save_Data
{
    public class SkillWorkSaveData : INotifyPropertyChanged
    {
        private string _SkillName = string.Empty;
        private int _Work;

        public string SkillName { get { return _SkillName; } set { Changed("SkillName"); _SkillName = value; } }
        public int Work { get { return _Work; } set { Changed("Work"); _Work = value; } }

        public event PropertyChangedEventHandler PropertyChanged;
        public void Changed(string n)
        {
            if (PropertyChanged == null) return;
            if (!string.IsNullOrEmpty(n))
                PropertyChanged(this, new PropertyChangedEventArgs(n));
        }
    }
}
